package com.example.demo.demos.web.service;

import com.example.demo.demos.web.entity.User;
import com.example.demo.demos.web.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public int adduserservice(User user){

 return userMapper.addUser(user);

    }
    public int updateservice(User user){

        return userMapper.updateUser(user);

    }

}
